package com.suixun.util;

/**
 * 公共异常类
 * 备注：与原异常没有区别，只是多了一个errormsg字段，保存开发人员提供的异常提示信息
 * @author yzChen
 * @date 2013-8-16 下午3:46:38
 * <pre>
 *	desc:
 * </pre>
 */
public class BeanConverterException extends Exception {

	private static final long serialVersionUID = 1849032051714300066L;

	// 原始异常
	private Throwable target;

	// 开发提供异常提示内容
	private String errormsg = "";

	public Throwable getTargetException() {
		return target;
	}

	public Throwable getCause() {
		return target;
	}

	protected BeanConverterException() {
		super((Throwable) null);
	}

	public BeanConverterException(Throwable target, String s) {
		super(s, null);
		this.target = target;
		this.errormsg = s;
	}

	public BeanConverterException(Throwable target) {
		super((Throwable) null);
		this.target = target;
	}

	public String getErrormsg() {
		return errormsg;
	}

}
